get Categories
Gets an iterator over the categories selected by this user as areas of interest. Each category is represented as a string.
Example of iterating through categories:
BeaconUser user = ...; // Obtain BeaconUser instance
Iterator<String> categories = user.getCategories();
if (categories != null) { // Check if the iterator itself is null
while (categories.hasNext()) {
String category = categories.next();
Log.d("UserInterests", "Category: " + category);
}
}
Content copied to clipboard
Return
An Iterator for the list of category strings. Returns an empty iterator or null
if no categories are specified or if the underlying collection is null. (Implementation should clarify behavior for no categories)